/* eslint-disable */
export default {
  methods: {
    fenpei: function (params) {
      return this.request({
        url: this.fenpeiUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },

    getFenpeiUserInfo: function (params) {
      return this.request({
        url: this.getFenpeiUserInfoUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
    getRoleInfo: function (params) {
      return this.request({
        url: this.getRoleAuthorizeInfoUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
    roleAuthorize: function (params) {
      return this.request({
        url: this.roleAuthorizeUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
    getHavedDataGroups: function (params) {
      return this.request({
        url: this.getHavedDataGroupsUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data: params
      })
    },
    updateDataGroupConfig: function (data) {
      return this.request({
        url: this.updateActDataUrl,
        method: 'post',
        headers: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        data
      })
    },
    import: function (data, url = this.importUrl) {
      return this.request({
        url,
        method: 'post',
        headers: {
          'Content-Type': 'multipart/form-data'
        },
        data
      })
    }
  }
}
